<?php

/*
 * environment setting.
 */
define('__', dirname(__DIR__));
ini_set('date.timezone', 'Asia/Tokyo');
ini_set('display_errors', 1);
ini_set('error_log', __ . '/logs/php.log');
ini_set('error_reporting', E_ALL);
ini_set('include_path', __ . '/lib:' . __ . '/modules');
ini_set('log_errors', 1);
ini_set('mbstring.internal_encoding', 'UTF-8');
mb_detect_order(array('UTF-8', 'SJIS-win', 'JIS'));
mb_language('ja');
spl_autoload_register();

/*
 * framework setting.
 */
$_ERRDOCS[400] = '/.err/500';
$_ERRDOCS[404] = '/.err/500';
$_ERRDOCS[500] = '/.err/500';

// $_INDEX = 'index.htm';
// $_INDEX = 'index.html';

// $_MEMCACHES[] = array('localhost', 11211);

$_PDOENVS['sqlite::memory:'] = array();

// $_FACILITY = LOG_LOCAL0;
// $_FACILITY = LOG_LOCAL1;
// $_FACILITY = LOG_LOCAL2;
// $_FACILITY = LOG_LOCAL3;
// $_FACILITY = LOG_LOCAL4;
// $_FACILITY = LOG_LOCAL5;
// $_FACILITY = LOG_LOCAL6;
// $_FACILITY = LOG_LOCAL7;
